﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGenerator.Core
{
    public class ColumnInfo
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType{ get; set;}
        /// <summary>
        /// 是否是自增列
        /// </summary>
        public string AutoIncrement { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public int MaxLength { get; set; }
        /// <summary>
        /// 小数长度
        /// </summary>
        public int DecimalNum { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get;  set; }
        /// <summary>
        /// 允许空值
        /// </summary>
        public string AllowDBNull { get; set; }
        /// <summary>
        /// 是否是主键
        /// </summary>
        public string IsPrimaryKey { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Comments { get; set; }
        /// <summary>
        /// .NET对象类型
        /// </summary>
        public NameElement NetType { get; set; }
        /// <summary>
        /// Java对象类型
        /// </summary>
        public NameElement JavaType { get; set; }

        /// <summary>
        /// 是否数值类型
        /// </summary>
        public bool IsNumeric{ get; set; }
        /// <summary>
        /// 是否日期类型
        /// </summary>
        public bool IsDateTime { get;set;}
        /// <summary>
        /// 是否布尔类型
        /// </summary>
        public bool IsBoolean{get;set;}
        /// <summary>
        /// UI控件类型
        /// </summary>
        public string UIControlType{get;set;}
    }
}
